package com.hc.fdkforwarders.controller;

import com.hc.fdkforwarders.common.Result;
import com.hc.fdkforwarders.common.page.PageContent;
import com.hc.fdkforwarders.common.page.PageContentContainer;
import com.hc.fdkforwarders.service.ForwarderGoodsService;
import com.hc.fdkforwarders.vo.GoodsFindQueryVO;
import com.hc.fdkforwarders.vo.GoodsFindVO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class ForwarderGoodsController {
    @Resource
    private ForwarderGoodsService forwarderGoodsService;


    @PostMapping("goods/find/page")
    public Result<PageContent<GoodsFindVO>> queryGoods(@RequestBody GoodsFindQueryVO goodsFindQuery){
        return Result.ok(forwarderGoodsService.queryGoods(goodsFindQuery));
    }
}
